def reverseWords(s: str) -> str:
    tokens = s.split(' ')
    tokens.reverse()
    return ' '.join(tokens)


print(reverseWords('I am a student'))


